package com.jerei.plugin.service.impl;

import com.jerei.plugin.dao.IWcmCommonResourceFolderDao;
import com.jerei.plugin.entity.WcmCommonResourceFolder;
import com.jerei.plugin.service.IWcmCommonResourceFolderService;
import com.jerei.utils.condition.ConditionEntity;
import com.jerei.utils.spring.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by sunfeihu on 2016/10/21.
 */
@Service
public class WcmCommonResourceFolderServiceImpl implements IWcmCommonResourceFolderService {

    @Autowired
    private IWcmCommonResourceFolderDao iWcmCommonResourceFolderDao;

    @Override
    public WcmCommonResourceFolder save(WcmCommonResourceFolder entity) {
        return iWcmCommonResourceFolderDao.save(entity);
    }

    @Override
    public int delete(Long id) {
        return iWcmCommonResourceFolderDao.delete(id);
    }

    @Override
    public int update(WcmCommonResourceFolder entity) {
        return iWcmCommonResourceFolderDao.update(entity);
    }

    @Override
    public WcmCommonResourceFolder find(Long id) {
        return iWcmCommonResourceFolderDao.find(id);
    }


    @Override
    public void save(List<WcmCommonResourceFolder> list) {
        iWcmCommonResourceFolderDao.save(list);
    }

    @Override
    public void delete(List<Long> ids) {
        iWcmCommonResourceFolderDao.delete(ids);
    }

    @Override
    public void update(List<WcmCommonResourceFolder> list) {
        iWcmCommonResourceFolderDao.update(list);
    }

    @Override
    public PageBean<WcmCommonResourceFolder> page(int nowPage, int pageSize, long sid) {
        return iWcmCommonResourceFolderDao.page(nowPage, pageSize, sid);
    }

    @Override
    public PageBean<WcmCommonResourceFolder> page(int nowPage, int pageSize, ConditionEntity conditionEntity) {
        return iWcmCommonResourceFolderDao.page(nowPage, pageSize, conditionEntity);
    }
}
